import request from '@/utils/bsinRequest';

// 添加权益
export const addRights = (params: any) => {
  return request('/add', {
    serviceName: 'AdminRightsInterestsService',
    methodName: 'add',
    bizParams: {
      ...params,
    },
  });
};

// 获取权益列表
export const getRightsList = (params: any) => {
  return request('/getPageList', {
    serviceName: 'AdminRightsInterestsService',
    methodName: 'getPageList',
    bizParams: {
      ...params,
    },
  });
};

// 获取权益详情
export const editRightsIfo = (params: any) => {
  return request('/getRightsInterestsListByRightsInterestsListNo', {
    serviceName: 'AdminRightsInterestsService',
    methodName: 'getRightsInterestsListByRightsInterestsListNo',
    bizParams: {
      ...params,
    },
  });
};

// 删除权益
export const deleteRightsIfo = (params: { serialNo: string }) => {
  return request('/delete', {
    serviceName: 'AdminRightsInterestsService',
    methodName: 'delete',
    bizParams: {
      ...params,
    },
  });
};

// 发布权益
export const publishRightsIfo = (params: { serialNo: string }) => {
  return request('/publish', {
    serviceName: 'AdminRightsInterestsService',
    methodName: 'publish',
    bizParams: {
      ...params,
    },
  });
};

// 获取nft列表
export const getThemeNftList = (params: {
  current: number;
  pageSize: number;
}) => {
  return request('/getPageList', {
    serviceName: 'AdminNftThemeService',
    methodName: 'getPageList',
    bizParams: {
      ...params,
    },
  });
};
// 身份列表数据请求
export const getPositionGrades = (params: {}) => {
  return request('/getPositionGrades', {
    serviceName: 'AdminNftPositionService',
    methodName: 'getPositionGrades',
    bizParams: {
      ...params,
    },
  });
};
